
#import <UIKit/UIKit.h>
#import "DataObject.h"
@protocol TSO_SetupDelgete;

@interface TSO_Setup : UIViewController<UITableViewDataSource,UITableViewDelegate,UIPickerViewDelegate>{
	id <TSO_SetupDelgete> delegate;
    id delegate_UIPopoverController;    
    
    UITableView *myTable;
	NSInteger TableSelectRow;
	
	NSArray  *SearchCondition; //搜尋條件
	
	
	UIPickerView *pick;
	UIDatePicker *datepick;
	
	NSMutableArray *tradesystemaray;
    NSMutableArray *tradeIndex; //內部策略 1 2 3
	
	
	NSMutableArray *stopratearay;//停損出場率	
	NSMutableArray *costfeeratearay;//手續費率
	NSMutableArray *buysellboth;//買賣策略	
	
	NSMutableArray *enterTime;//進場時間
	NSMutableArray *enterprice;//進場價格
	NSMutableArray *enternumber;//進場數量	
	
	//股票資料物件
	NSMutableArray *allcountry;	
	
}
@property (nonatomic, assign) id <TSO_SetupDelgete> delegate;
@property (nonatomic, assign) id delegate_UIPopoverController;

-(void)slideOut;
-(id)initWithallcountry:(NSMutableArray *)allcountrys;
-(void)switchChange:(id) sender;
-(void)segChange:(id) sender;
-(void) changeDate:(UIDatePicker *) picker;
-(void)resetOptimizePara;
-(void)opt_datasql_code_name:(NSString *) country titels:(NSString *)titles;
-(void)opt_data_output:(NSString *)tradesystem dwm:(NSString *)adwm;

@end


@protocol TSO_SetupDelgete
- (void)TSO_SetupDidFinish:(TSO_Setup *)controller;
@end
